﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Dazaza.Repositories;
using Dazaza.Domain.Model;

namespace Dazaza.UI.Mvc.Controllers
{
    public class TestController : BaseController
    {
        public ActionResult Index()
        {
            var list = InfoRepository.SearchByTag(new Domain.Model.SearchInfo.InfoSearchInfo() { Tag="diglog", PageIndex=2, PageSize=10 });

            foreach (var item in list)
            {
                Response.Write(item.Title);
            }

            return View();
        }
    }
}
